{% extends "wagglyblog/base.html" %}

{% load i18n %}
{% load markup %}

{% block content %}

    <h2>{% trans "Available categories" %}</h2>

    {% if object_list %}
        {% for cat in object_list %}
        <div>
            <h2><a href="{{ cat.get_absolute_url }}">{{ cat.title }}</a></h2>
                <span>| {% trans "Posts" %}: <a href="{{ cat.get_absolute_url }}">{{ cat.post_set.count }}</a> |</span>
                <p>{{ cat.description|markdown }}</p>
        </div>
        {% endfor %}
    {% endif %}

{% endblock %}